import request from '@/utils/request'

export function getPrivilegeList(params) {
  return request({
    url: '/admin/privilege/privilegeList',
    method: 'get',
    params
  })
}

export function createPrivilege(data) {
  return request({
    url: '/admin/privilege/createPrivilege',
    method: 'post',
    data
  })
}

export function updatePrivilege(data) {
  return request({
    url: '/admin/privilege/updatePrivilege',
    method: 'post',
    data
  })
}
export function deletePrivilege(data) {
  return request({
    url: '/admin/privilege/deletePrivilege',
    method: 'post',
    data
  })
}
